﻿<%@ Page Language="C#" MasterPageFile="~/HousingInfo.master" AutoEventWireup="true"
    CodeFile="Home.aspx.cs" Inherits="WebHousingInfo.Home" Title="Untitled Page" %>
<%@ Register Src="~/Controls/PhongthuyTrangChu.ascx" TagName="PhongthuyTrangChu" TagPrefix="pttc" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   Trang chủ
</asp:Content>    
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        
<div id="group_4_other" style="border-left:none; border-right:none;">
    <div id="noidungtrangchu">
	    <div class="title">
		    <ul id="maintab_mb">
		      <li class="selected"><a href="#" rel="tcontent_ban">NHÀ ĐẤT BÁN MỚI NHẤT</a></li>
		      <li><a href="#" rel="tcontent_thue">NHÀ ĐẤT CHO THUÊ MỚI NHẤT</a></li>
		    </ul>
	    </div>
	    <div class="content clearfix">		
		    <div id="tcontent_thue" class="tabcontent_mb">
		        <div id="data_group">
                    <div class="menu_group4">
                      <ul>
	                    <li style="width:98px;">Hình ảnh</li>
	                    <li style="width:108px;">Thông tin</li>
	                    <li style="width:264px;" class="cach">Nơi đăng</li>
                      </ul>
                    </div>
                    
                    <%  var obNewstin_ChoThue = Getdatasource(19); %>
                    <% foreach (var obNewsHouse in obNewstin_ChoThue)
                       {
                           if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 2)
                           {//tin thuong
                     %>
                    <div class="sub_data_group_width_492">
	                     <div class="img_width_100">
					                    <% if (obNewsHouse.UrlImage != "")
                            {
                                var listimage = obNewsHouse.UrlImage.Split('/');
                                string url = "";
                                foreach (var detail in listimage)
                                {
                                    if (checkurlimage(detail) == true)
                                    {
                                        url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                            
                                                        
                                                     %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                    }
                                }
                                if (url == "")
                                { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                            <% }
                            }
                            else
                            { %>
                                            <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                        <%} %></div>
	                    <div class="right_width_391">
		                    <div class="title_group_width_391">
			                    <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a></span>
							    <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                    </div>
		                    <div class="content_group_width_388">
			                    <table width="388" border="0" cellspacing="0" cellpadding="0">
				                    <tr>
					                    <td valign="top" class="li_width_126" width="120">
						                    <div class="li_width_126_01">
											                    Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span>
                                                                <br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                       {
                                                                           if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                            { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                        } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										    </div>
					                    </td>
					                    <td valign="top" class="li_width_336" width="168">
						                    <div class="li_width_336_01" align="justify">
							                    <p>
							                    <% if (obNewsHouse.NewsContent.Length > 100)
                              {%>
                                                                <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                            <%}
                              else
                              {%>
                                                             <%=obNewsHouse.NewsContent%>
                                                            <%} %>
                                                </p>
							                    <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                    <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                    </span>
							                    </label> 
						                    </div>	
					                    </td>
					                    <td valign="top" class="li_width_88" width="88">
						                    <div class="li_width_88_01">
						                        <%=obNewsHouse.AreaDetailName%><br />
												<%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                    </div>																		
					                    </td>
				                    </tr>
			                    </table>
		                    </div>
	                    </div>
                    </div>
                    <%}
                    else if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 4)
                       { //tin quang cao 
                        %>
                            <div class="recent sub_data_group_width_492">
	                             <div class="img_width_100">
					                            <% if (obNewsHouse.UrlImage != "")
                                    {
                                        var listimage = obNewsHouse.UrlImage.Split('/');
                                        string url = "";
                                        foreach (var detail in listimage)
                                        {
                                            if (checkurlimage(detail) == true)
                                            {
                                                url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                    
                                                                
                                                             %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                            }
                                        }
                                        if (url == "")
                                        { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <% }
                                    }
                                    else
                                    { %>
                                                    <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                <%} %></div>
	                            <div class="right_width_391">
		                            <div class="title_group_width_391">
			                            <span class="sub_title_left"><a class="nhapnhaychu" href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							            <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                            </div>
		                            <div class="content_group_width_388">
			                            <table width="388" border="0" cellspacing="0" cellpadding="0">
				                            <tr>
					                            <td valign="top" class="li_width_126" width="120">
						                            <div class="li_width_126_01">
											                            Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                        { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                       {
                                                                                                                                                           if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                          { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                        } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										            </div>
					                            </td>
					                            <td valign="top" class="li_width_336" width="168">
						                            <div class="li_width_336_01" align="justify">
							                            <p>
							                            <% if (obNewsHouse.NewsContent.Length > 100)
                                      {%>
                                                                        <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                    <%}
                                      else
                                      {%>
                                                                     <%=obNewsHouse.NewsContent%>
                                                                    <%} %>
                                                        </p>
							                            <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                            <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                            </span>
							                            </label> 
						                            </div>	
					                            </td>
					                            <td valign="top" class="li_width_88" width="88">
						                            <div class="li_width_88_01">
						                                <%=obNewsHouse.AreaDetailName%><br />
												        <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                            </div>																		
					                            </td>
				                            </tr>
			                            </table>
		                            </div>
	                            </div>
                            </div>
                        <% 
                       }
                           else
                               { //tin vip
                                 %>
                                <div class="sub_data_group_width_492 recentnormal">
	                                 <div class="img_width_100">
					                                <% if (obNewsHouse.UrlImage != "")
                                        {
                                            var listimage = obNewsHouse.UrlImage.Split('/');
                                            string url = "";
                                            foreach (var detail in listimage)
                                            {
                                                if (checkurlimage(detail) == true)
                                                {
                                                    url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                        
                                                                    
                                                                 %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                                }
                                            }
                                            if (url == "")
                                            { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                        <% }
                                        }
                                        else
                                        { %>
                                                        <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <%} %></div>
	                                <div class="right_width_391">
		                                <div class="title_group_width_391">
			                                <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							                <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                                </div>
		                                <div class="content_group_width_388">
			                                <table width="388" border="0" cellspacing="0" cellpadding="0">
				                                <tr>
					                                <td valign="top" class="li_width_126" width="120">
						                                <div class="li_width_126_01">
											                                Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                            { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                           {
                                                                                                                                                               if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                               { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                              { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                            } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										                </div>
					                                </td>
					                                <td valign="top" class="li_width_336" width="168">
						                                <div class="li_width_336_01" align="justify">
							                                <p>
							                                <% if (obNewsHouse.NewsContent.Length > 100)
                                          {%>
                                                                            <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                        <%}
                                          else
                                          {%>
                                                                         <%=obNewsHouse.NewsContent%>
                                                                        <%} %>
                                                            </p>
							                                <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                                <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                                </span>
							                                </label> 
						                                </div>	
					                                </td>
					                                <td valign="top" class="li_width_88" width="88">
						                                <div class="li_width_88_01">
						                                    <%=obNewsHouse.AreaDetailName%><br />
												            <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                                </div>																		
					                                </td>
				                                </tr>
			                                </table>
		                                </div>
	                                </div>
                                </div>
                           <%}
                    } %>
                    
                </div>
                <div class="title_group4">
                    <span><a href="TatCaTinNhaDat.aspx?id=19">xem thêm</a></span>
                </div>
		    </div>
		    <div id="tcontent_ban" class="tabcontent_mb">
		        <div id="data_group">
                        <div class="menu_group4">
                          <ul>
	                        <li style="width:98px;">Hình ảnh</li>
	                        <li style="width:108px;">Thông tin</li>
	                        <li style="width:264px;" class="cach">Nơi đăng</li>
                          </ul>
                        </div>
                        <%  var obNewstin_CanBan = Getdatasource(1); %>
                    <% foreach (var obNewsHouse in obNewstin_CanBan)
                       {
                           if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 2)
                           {//tin thuong
                     %>
                    <div class="sub_data_group_width_492">
	                     <div class="img_width_100">
					                    <% if (obNewsHouse.UrlImage != "")
                            {
                                var listimage = obNewsHouse.UrlImage.Split('/');
                                string url = "";
                                foreach (var detail in listimage)
                                {
                                    if (checkurlimage(detail) == true)
                                    {
                                        url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                            
                                                        
                                                     %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                    }
                                }
                                if (url == "")
                                { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                            <% }
                            }
                            else
                            { %>
                                            <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                        <%} %></div>
	                    <div class="right_width_391">
		                    <div class="title_group_width_391">
			                    <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a></span>
							    <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                    </div>
		                    <div class="content_group_width_388">
			                    <table width="388" border="0" cellspacing="0" cellpadding="0">
				                    <tr>
					                    <td valign="top" class="li_width_126" width="120">
						                    <div class="li_width_126_01">
											                    Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><%} %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                               {
                                                                                                                                                   if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                   { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                 { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										    </div>
					                    </td>
					                    <td valign="top" class="li_width_336" width="168">
						                    <div class="li_width_336_01" align="justify">
							                    <p>
							                    <% if (obNewsHouse.NewsContent.Length > 100)
                              {%>
                                                                <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                            <%}
                              else
                              {%>
                                                             <%=obNewsHouse.NewsContent%>
                                                            <%} %>
                                                </p>
							                    <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                    <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                    </span>
							                    </label> 
						                    </div>	
					                    </td>
					                    <td valign="top" class="li_width_88" width="88">
						                    <div class="li_width_88_01">
						                        <%=obNewsHouse.AreaDetailName%><br />
												<%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                    </div>																		
					                    </td>
				                    </tr>
			                    </table>
		                    </div>
	                    </div>
                    </div>
                    <%}
                    else if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 4)
                       { //tin quang cao 
                        %>
                            <div class="recent sub_data_group_width_492">
	                             <div class="img_width_100">
					                            <% if (obNewsHouse.UrlImage != "")
                                    {
                                        var listimage = obNewsHouse.UrlImage.Split('/');
                                        string url = "";
                                        foreach (var detail in listimage)
                                        {
                                            if (checkurlimage(detail) == true)
                                            {
                                                url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                    
                                                                
                                                             %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                            }
                                        }
                                        if (url == "")
                                        { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <% }
                                    }
                                    else
                                    { %>
                                                    <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                <%} %></div>
	                            <div class="right_width_391">
		                            <div class="title_group_width_391">
			                            <span class="sub_title_left"><a class="nhapnhaychu" href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							            <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                            </div>
		                            <div class="content_group_width_388">
			                            <table width="388" border="0" cellspacing="0" cellpadding="0">
				                            <tr>
					                            <td valign="top" class="li_width_126" width="120">
						                            <div class="li_width_126_01">
											                            Giá: <span class="spannormal"><% if(obNewsHouse.Price != -1) { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                                                             { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                                                                         } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										            </div>
					                            </td>
					                            <td valign="top" class="li_width_336" width="168">
						                            <div class="li_width_336_01" align="justify">
							                            <p>
							                            <% if (obNewsHouse.NewsContent.Length > 100)
                                      {%>
                                                                        <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                    <%}
                                      else
                                      {%>
                                                                     <%=obNewsHouse.NewsContent%>
                                                                    <%} %>
                                                        </p>
							                            <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                            <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                            </span>
							                            </label> 
						                            </div>	
					                            </td>
					                            <td valign="top" class="li_width_88" width="88">
						                            <div class="li_width_88_01">
						                                <%=obNewsHouse.AreaDetailName%><br />
												        <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                            </div>																		
					                            </td>
				                            </tr>
			                            </table>
		                            </div>
	                            </div>
                            </div>
                        <% 
                       }
                           else
                               { //tin vip
                                 %>
                                <div class="sub_data_group_width_492 recentnormal">
	                                 <div class="img_width_100">
					                                <% if (obNewsHouse.UrlImage != "")
                                        {
                                            var listimage = obNewsHouse.UrlImage.Split('/');
                                            string url = "";
                                            foreach (var detail in listimage)
                                            {
                                                if (checkurlimage(detail) == true)
                                                {
                                                    url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                        
                                                                    
                                                                 %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                                }
                                            }
                                            if (url == "")
                                            { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                        <% }
                                        }
                                        else
                                        { %>
                                                        <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <%} %></div>
	                                <div class="right_width_391">
		                                <div class="title_group_width_391">
			                                <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							                <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                                </div>
		                                <div class="content_group_width_388">
			                                <table width="388" border="0" cellspacing="0" cellpadding="0">
				                                <tr>
					                                <td valign="top" class="li_width_126" width="120">
						                                <div class="li_width_126_01">
											                                Giá: <span class="spannormal"><% if(obNewsHouse.Price != -1) { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                                         {
                                                                                                                                                                                             if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                             { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                                         } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										                </div>
					                                </td>
					                                <td valign="top" class="li_width_336" width="168">
						                                <div class="li_width_336_01" align="justify">
							                                <p>
							                                <% if (obNewsHouse.NewsContent.Length > 100)
                                          {%>
                                                                            <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                        <%}
                                          else
                                          {%>
                                                                         <%=obNewsHouse.NewsContent%>
                                                                        <%} %>
                                                            </p>
							                                <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                                <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                                </span>
							                                </label> 
						                                </div>	
					                                </td>
					                                <td valign="top" class="li_width_88" width="88">
						                                <div class="li_width_88_01">
						                                    <%=obNewsHouse.AreaDetailName%><br />
												            <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                                </div>																		
					                                </td>
				                                </tr>
			                                </table>
		                                </div>
	                                </div>
                                </div>
                           <%}
                    } %>
                    </div>
                    <div class="title_group4">
                        <span><a href="TatCaTinNhaDat.aspx?id=1">Xem thêm</a></span>
                    </div>
		    </div>
	    </div>
	    </div>
	    <script type="text/javascript">		
		    initializetabcontent("maintab_mb");			
	    </script>
	    
	    
	<div id="noidungtrangchu">
		<div class="title">
		    <ul id="maintab">
		      <li class="selected"><a href="#" rel="tcontent_canmua">NHÀ CẦN MUA MỚI NHẤT</a></li>
		      <li class="" ><a href="#" rel="tcontent_canthue">NHÀ ĐẤT CẦN THUÊ MỚI NHẤT</a></li>
		    </ul>
	    </div>
		<div class="content clearfix">		
		    <div id="tcontent_canthue" class="tabcontent_mb" style="display: none;">
		        <div id="data_group">
                    <div class="menu_group4">
                      <ul>
	                    <li style="width:98px;">Hình ảnh</li>
	                    <li style="width:108px;">Thông tin</li>
	                    <li style="width:264px;" class="cach">Nơi đăng</li>
                      </ul>
                    </div>
                    <%  var obNewstin_CanThue = Getdatasource(18); %>
                    <% foreach (var obNewsHouse in obNewstin_CanThue)
                       {
                           if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 2)
                           {//tin thuong
                     %>
                    <div class="sub_data_group_width_492">
	                     <div class="img_width_100">
					                    <% if (obNewsHouse.UrlImage != "")
                            {
                                var listimage = obNewsHouse.UrlImage.Split('/');
                                string url = "";
                                foreach (var detail in listimage)
                                {
                                    if (checkurlimage(detail) == true)
                                    {
                                        url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                            
                                                        
                                                     %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                    }
                                }
                                if (url == "")
                                { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                            <% }
                            }
                            else
                            { %>
                                            <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                        <%} %></div>
	                    <div class="right_width_391">
		                    <div class="title_group_width_391">
			                    <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a></span>
							    <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                    </div>
		                    <div class="content_group_width_388">
			                    <table width="388" border="0" cellspacing="0" cellpadding="0">
				                    <tr>
					                    <td valign="top" class="li_width_126" width="120">
						                    <div class="li_width_126_01">
											                    Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                           {
                                                                                                                                                                               if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                               { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                  { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                           } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										    </div>
					                    </td>
					                    <td valign="top" class="li_width_336" width="168">
						                    <div class="li_width_336_01" align="justify">
							                    <p>
							                    <% if (obNewsHouse.NewsContent.Length > 100)
                              {%>
                                                                <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                            <%}
                              else
                              {%>
                                                             <%=obNewsHouse.NewsContent%>
                                                            <%} %>
                                                </p>
							                    <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                    <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                    </span>
							                    </label> 
						                    </div>	
					                    </td>
					                    <td valign="top" class="li_width_88" width="88">
						                    <div class="li_width_88_01">
						                        <%=obNewsHouse.AreaDetailName%><br />
												<%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                    </div>																		
					                    </td>
				                    </tr>
			                    </table>
		                    </div>
	                    </div>
                    </div>
                    <%}
                    else if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 4)
                       { //tin quang cao 
                        %>
                            <div class="recent sub_data_group_width_492">
	                             <div class="img_width_100">
					                            <% if (obNewsHouse.UrlImage != "")
                                    {
                                        var listimage = obNewsHouse.UrlImage.Split('/');
                                        string url = "";
                                        foreach (var detail in listimage)
                                        {
                                            if (checkurlimage(detail) == true)
                                            {
                                                url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                    
                                                                
                                                             %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                            }
                                        }
                                        if (url == "")
                                        { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <% }
                                    }
                                    else
                                    { %>
                                                    <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                <%} %></div>
	                            <div class="right_width_391">
		                            <div class="title_group_width_391">
			                            <span class="sub_title_left"><a class="nhapnhaychu" href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							            <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                            </div>
		                            <div class="content_group_width_388">
			                            <table width="388" border="0" cellspacing="0" cellpadding="0">
				                            <tr>
					                            <td valign="top" class="li_width_126" width="120">
						                            <div class="li_width_126_01">
											                            Giá: <span class="spannormal"><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%></span><br>DT: <% if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%} %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										            </div>
					                            </td>
					                            <td valign="top" class="li_width_336" width="168">
						                            <div class="li_width_336_01" align="justify">
							                            <p>
							                            <% if (obNewsHouse.NewsContent.Length > 100)
                                      {%>
                                                                        <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                    <%}
                                      else
                                      {%>
                                                                     <%=obNewsHouse.NewsContent%>
                                                                    <%} %>
                                                        </p>
							                            <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                            <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                            </span>
							                            </label> 
						                            </div>	
					                            </td>
					                            <td valign="top" class="li_width_88" width="88">
						                            <div class="li_width_88_01">
						                                <%=obNewsHouse.AreaDetailName%><br />
												        <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                            </div>																		
					                            </td>
				                            </tr>
			                            </table>
		                            </div>
	                            </div>
                            </div>
                        <% 
                       }
                           else
                               { //tin vip
                                 %>
                                <div class="sub_data_group_width_492 recentnormal">
	                                 <div class="img_width_100">
					                                <% if (obNewsHouse.UrlImage != "")
                                        {
                                            var listimage = obNewsHouse.UrlImage.Split('/');
                                            string url = "";
                                            foreach (var detail in listimage)
                                            {
                                                if (checkurlimage(detail) == true)
                                                {
                                                    url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                        
                                                                    
                                                                 %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                                }
                                            }
                                            if (url == "")
                                            { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                        <% }
                                        }
                                        else
                                        { %>
                                                        <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <%} %></div>
	                                <div class="right_width_391">
		                                <div class="title_group_width_391">
			                                <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							                <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                                </div>
		                                <div class="content_group_width_388">
			                                <table width="388" border="0" cellspacing="0" cellpadding="0">
				                                <tr>
					                                <td valign="top" class="li_width_126" width="120">
						                                <div class="li_width_126_01">
											                                Giá: <span class="spannormal"><% if(obNewsHouse.Price != -1) { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                                         {
                                                                                                                                                                                             if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                             { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                                         } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										                </div>
					                                </td>
					                                <td valign="top" class="li_width_336" width="168">
						                                <div class="li_width_336_01" align="justify">
							                                <p>
							                                <% if (obNewsHouse.NewsContent.Length > 100)
                                          {%>
                                                                            <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                        <%}
                                          else
                                          {%>
                                                                         <%=obNewsHouse.NewsContent%>
                                                                        <%} %>
                                                            </p>
							                                <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                                <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                                </span>
							                                </label> 
						                                </div>	
					                                </td>
					                                <td valign="top" class="li_width_88" width="88">
						                                <div class="li_width_88_01">
						                                    <%=obNewsHouse.AreaDetailName%><br />
												            <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                                </div>																		
					                                </td>
				                                </tr>
			                                </table>
		                                </div>
	                                </div>
                                </div>
                           <%}
                    } %>
                    </div>
                <div class="title_group4">
                    <span><a href="TatCaTinNhaDat.aspx?id=18">xem thêm</a></span>
                </div>
		    </div>
		    <div id="tcontent_canmua" class="tabcontent_mb" style="display: block;">
		        <div id="data_group">
                        <div class="menu_group4">
                          <ul>
	                        <li style="width:98px;">Hình ảnh</li>
	                        <li style="width:108px;">Thông tin</li>
	                        <li style="width:264px;" class="cach">Nơi đăng</li>
                          </ul>
                        </div>
                        <%  var obNewstin_CanMua = Getdatasource(6); %>
                    <% foreach (var obNewsHouse in obNewstin_CanMua)
                       {
                           if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 2)
                           {//tin thuong
                     %>
                    <div class="sub_data_group_width_492">
	                     <div class="img_width_100">
					                    <% if (obNewsHouse.UrlImage != "")
                            {
                                var listimage = obNewsHouse.UrlImage.Split('/');
                                string url = "";
                                foreach (var detail in listimage)
                                {
                                    if (checkurlimage(detail) == true)
                                    {
                                        url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                            
                                                        
                                                     %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                    }
                                }
                                if (url == "")
                                { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                            <% }
                            }
                            else
                            { %>
                                            <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                        <%} %></div>
	                    <div class="right_width_391">
		                    <div class="title_group_width_391">
			                    <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a></span>
							    <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                    </div>
		                    <div class="content_group_width_388">
			                    <table width="388" border="0" cellspacing="0" cellpadding="0">
				                    <tr>
					                    <td valign="top" class="li_width_126" width="120">
						                    <div class="li_width_126_01">
											                    Giá: <span class="spannormal"><% if(obNewsHouse.Price != -1) { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                             {
                                                                                                                                                                                 if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                 { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                                                                               { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                             } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										    </div>
					                    </td>
					                    <td valign="top" class="li_width_336" width="168">
						                    <div class="li_width_336_01" align="justify">
							                    <p>
							                    <% if (obNewsHouse.NewsContent.Length > 100)
                              {%>
                                                                <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                            <%}
                              else
                              {%>
                                                             <%=obNewsHouse.NewsContent%>
                                                            <%} %>
                                                </p>
							                    <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                    <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                    </span>
							                    </label> 
						                    </div>	
					                    </td>
					                    <td valign="top" class="li_width_88" width="88">
						                    <div class="li_width_88_01">
						                        <%=obNewsHouse.AreaDetailName%><br />
												<%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                    </div>																		
					                    </td>
				                    </tr>
			                    </table>
		                    </div>
	                    </div>
                    </div>
                    <%}
                    else if (HousingInfo.Library.NewsHouseBOList.checkvip_newshouse(obNewsHouse.NewsHouseID) == 4)
                       { //tin quang cao 
                        %>
                            <div class="recent sub_data_group_width_492">
	                             <div class="img_width_100">
					                            <% if (obNewsHouse.UrlImage != "")
                                    {
                                        var listimage = obNewsHouse.UrlImage.Split('/');
                                        string url = "";
                                        foreach (var detail in listimage)
                                        {
                                            if (checkurlimage(detail) == true)
                                            {
                                                url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                    
                                                                
                                                             %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                            }
                                        }
                                        if (url == "")
                                        { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <% }
                                    }
                                    else
                                    { %>
                                                    <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                <%} %></div>
	                            <div class="right_width_391">
		                            <div class="title_group_width_391">
			                            <span class="sub_title_left"><a class="nhapnhaychu" href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							            <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                            </div>
		                            <div class="content_group_width_388">
			                            <table width="388" border="0" cellspacing="0" cellpadding="0">
				                            <tr>
					                            <td valign="top" class="li_width_126" width="120">
						                            <div class="li_width_126_01">
											                            Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                        { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                                    {
                                                                                                                                                                                        if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                        { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                          { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                                    } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										            </div>
					                            </td>
					                            <td valign="top" class="li_width_336" width="168">
						                            <div class="li_width_336_01" align="justify">
							                            <p>
							                            <% if (obNewsHouse.NewsContent.Length > 100)
                                      {%>
                                                                        <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                    <%}
                                      else
                                      {%>
                                                                     <%=obNewsHouse.NewsContent%>
                                                                    <%} %>
                                                        </p>
							                            <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                            <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                            </span>
							                            </label> 
						                            </div>	
					                            </td>
					                            <td valign="top" class="li_width_88" width="88">
						                            <div class="li_width_88_01">
						                                <%=obNewsHouse.AreaDetailName%><br />
												        <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                            </div>																		
					                            </td>
				                            </tr>
			                            </table>
		                            </div>
	                            </div>
                            </div>
                        <% 
                       }
                           else
                               { //tin vip
                                 %>
                                <div class="sub_data_group_width_492 recentnormal">
	                                 <div class="img_width_100">
					                                <% if (obNewsHouse.UrlImage != "")
                                        {
                                            var listimage = obNewsHouse.UrlImage.Split('/');
                                            string url = "";
                                            foreach (var detail in listimage)
                                            {
                                                if (checkurlimage(detail) == true)
                                                {
                                                    url = "TotalUpload/ImagesTotal/" + detail;                                    
                                                                        
                                                                    
                                                                 %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="<%=url %>" width="100px" height="100px" border="0" align="left" /></a><% break;
                                                }
                                            }
                                            if (url == "")
                                            { %><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                        <% }
                                        }
                                        else
                                        { %>
                                                        <a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><img src="TotalUpload/ImagesTotal/noimagetin.jpg" width="100px" height="100px" border="0" align="left" /></a>
                                                    <%} %></div>
	                                <div class="right_width_391">
		                                <div class="title_group_width_391">
			                                <span class="sub_title_left"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>"><%=obNewsHouse.Title%></a><img alt="logovip" src="ImageNews/vip.gif" /></span>
							                <span class="sub_title_right"><a href="TinNhaDatChiTiet.aspx?id=<%=obNewsHouse.NewsHouseID %>">chi tiết</a></span>
		                                </div>
		                                <div class="content_group_width_388">
			                                <table width="388" border="0" cellspacing="0" cellpadding="0">
				                                <tr>
					                                <td valign="top" class="li_width_126" width="120">
						                                <div class="li_width_126_01">
											                                Giá: <span class="spannormal"><% if (obNewsHouse.Price != -1)
                                                                            { %><%=obNewsHouse.Price%> <%=obNewsHouse.CurrencyName%><% } %></span><br>DT: <% if (obNewsHouse.SurfaceAreaWidth != -1)
                                                                                                                                                                                       {
                                                                                                                                                                                           if (obNewsHouse.SurfaceAreaHeight == obNewsHouse.SurfaceAreaWidth)
                                                                                                                                                                                           { %><%=obNewsHouse.SurfaceAreaWidth%> m<sup>2</sup> <%} %> <%else
                                                                                                                                                              { %><%=obNewsHouse.SurfaceAreaWidth%> x <%=obNewsHouse.SurfaceAreaHeight%> (m x m)<%}
                                                                                                                                                                                       } %> <br />Vị trí: <%=obNewsHouse.AreaDetailName%><br>	
										                </div>
					                                </td>
					                                <td valign="top" class="li_width_336" width="168">
						                                <div class="li_width_336_01" align="justify">
							                                <p>
							                                <% if (obNewsHouse.NewsContent.Length > 100)
                                          {%>
                                                                            <%=obNewsHouse.NewsContent.Substring(0, 99)%> ...
                                                                        <%}
                                          else
                                          {%>
                                                                         <%=obNewsHouse.NewsContent%>
                                                                        <%} %>
                                                            </p>
							                                <label>Lượt xem: <strong><%=obNewsHouse.ViewCount%></strong>  |  <span>
								                                <a href="Home.aspx?save=<%=obNewsHouse.NewsHouseID %>">Lưu tin</a>
								                                </span>
							                                </label> 
						                                </div>	
					                                </td>
					                                <td valign="top" class="li_width_88" width="88">
						                                <div class="li_width_88_01">
						                                    <%=obNewsHouse.AreaDetailName%><br />
												            <%=obNewsHouse.AreaName%><br />Đà Nẵng	
						                                </div>																		
					                                </td>
				                                </tr>
			                                </table>
		                                </div>
	                                </div>
                                </div>
                           <%}
                    } %>
                    </div>
                    <div class="title_group4">
                        <span><a href="TatCaTinNhaDat.aspx?id=6">Xem thêm</a></span>
                    </div>
		    </div>
	    </div>
	    <script type="text/javascript">		
		    initializetabcontent("maintab");			
	    </script>
    </div>	
    <pttc:PhongthuyTrangChu ID="PhongthuyTrangChu" runat="server" />														 
</div>	

</asp:Content>